package com.info.zhiduoduo.repository.entity.maker;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author bob
 * @since 2018-12-30
 */
@Data
@Accessors(chain = true)
@TableName("zdd_studio_field")
public class StudioField extends Model<StudioField> {

    private static final long serialVersionUID = 1L;

    /**
     * 领域id
     */
    @TableId(value = "fieldid", type = IdType.AUTO)
    private Integer fieldid;
    /**
     * 领域名
     */
    private String fieldname;
    private Date createtime;


    @Override
    protected Serializable pkVal() {
        return this.fieldid;
    }

}
